package com.blb.mapper;

import com.blb.entity.Company;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HuaHao
 * @since 2019-11-15
 */
public interface CompanyMapper extends BaseMapper<Company> {

    //根据公司名查询公司是否已存在
    @Select("SELECT * FROM s_company WHERE company_name = #{companyName} ")
    Company getCompanyByCompanyName(String companyName);

}
